package com.dzjcloud.dzj.common.mybatis.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <h3>dzj-cloud</h3>
 * <p>moderl公共字段</p>
 *
 * @author : DongZeJian
 * @date : 2021-06-10 10:43
 **/
@Data
public class BeanModel extends Model {

    //创建时间
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("创建人Id")
    @TableField(fill = FieldFill.INSERT)
    private String createUserId;

    //更新时间
    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("更新人Id")
    @TableField(fill = FieldFill.UPDATE)
    private String updateUserId;
}
